#import "Common.h"

@implementation Common

@synthesize currentMarketForApp, countryName, googleMapApi, /*linkNearlyMarket,*/ linkMarkedInfo, linkToMarkedTypeList, linkToCategoryList, linkMarkedListSummary, linkViewAll, linkTopMarkeder, defaultFacebookLink, defaultPageSize, isFromMap, linkLoadNewMarkets, linkLoadNewBusinessMarkets, timeIntervalToReloadMarketList;

-(id) init
{
    self = [super init];
    if(self){
        currentMarketForMap = nil;
        countryName = @"Denmak";
        
        googleMapApi = @"http://maps.googleapis.com/maps/api/geocode/xml?address=%@&sensor=false";
        
        //linkNearlyMarket = @"http://fleafinder.dk/index.php?option=com_hlproduct&view=mobile&rdata=marked_nearly&marked=%i&page_size=%i";
        
        linkMarkedInfo = @"http://fleafinder.dk/index.php?option=com_hlproduct&view=mobile&rdata=marked_info&marked=%d";
        
        linkToMarkedTypeList = @"http://fleafinder.dk/index.php?option=com_hlproduct&view=mobile&rdata=markedtypelist";
        
        linkToCategoryList = @"http://fleafinder.dk/index.php?option=com_hlproduct&view=mobile&rdata=categorylist";
        
        linkMarkedListSummary = @"http://fleafinder.dk/index.php?option=com_hlproduct&view=mobile&rdata=marked_in_category&marked_type=%d&marked_category=%d";
        
        linkViewAll = @"http://fleafinder.dk/index.php?option=com_hlproduct&view=mobile&rdata=randommarkeder&page_size=%d&page_num=%d";
        
        linkTopMarkeder = @"http://fleafinder.dk/index.php?option=com_hlproduct&view=mobile&rdata=topmarkeder&page_size=%d&page_num=%d";
        
        defaultFacebookLink = @"https://www.facebook.com/pages/Fleafinder/428740600481849";
        
        linkLoadNewMarkets = @"http://fleafinder.dk/index.php?option=com_hlproduct&view=mobile&rdata=randommarkeder&lastloaded=%d-%d-%d %d:%d:%d"; //yyyy-mm-dd hh-mm-ss
        
        linkLoadNewBusinessMarkets = @"http://fleafinder.dk/index.php?option=com_hlproduct&view=mobile&rdata=topmarkeder&lastloaded=%d-%d-%d %d:%d:%d";
        
        defaultPageSize = 20;
        
        isFromMap = NO;
        
        timeIntervalToReloadMarketList = 30;
    }
    return self;
}

@end
